#ifndef LOC_TYPE_H
#define LOC_TYPE_H
// localization
struct Localization
{
    bool valid;
    double time;
    double lon;
    double lat;
    double xg;
    double yg;
    double zg;
    double yawrate;
    float angle;
    float pitch;
    float roll;
    float vx;
    float vy;
    float accx;
    float accy;
    float speed;
    void Reset()
    {
        valid = false;
        time;
        lon = 0.0;
        lat = 0.0;
        xg = 0.0;
        yg = 0.0;
        zg = 0.0;
        yawrate = 0.0;
        angle = 0.0;
        pitch = 0.0;
        roll = 0.0;
        vx = 0.0;
        vy = 0.0;
        accx = 0.0;
        accy = 0.0;
        speed = 0.0;
    }
};
struct VehicleStatus
{
    float speed;
    int gear;
    double time;
    void Reset()
    {
        speed = 0;
        gear = -1;
        time = 0;
    }
};

#endif